package com.baibei.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 拼单信息
 * Created by ChenRui on 2017/8/15 0015 11:09.
 */
public class MergeOrderInfo implements Parcelable {

    private String productDetailId;
    private int productId;
    private String productPic;
    private int retailPrice;
    private int upCount;
    private int remainCount;
    private String remainCountStr;
    private String detailPic;
//    private double worthPrice;
    private double crawdPrice;
    private String crawdedCount;
    private double progress;
    private String name;
    private String producttype;
    private String area;
    private int isUp;
    private long startTime;
    private long endTime;

    public String getProductDetailId() {
        return productDetailId;
    }

    public void setProductDetailId(String productDetailId) {
        this.productDetailId = productDetailId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public String getProductPic() {
        return productPic;
    }

    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }

    public int getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(int retailPrice) {
        this.retailPrice = retailPrice;
    }

    public int getUpCount() {
        return upCount;
    }

    public void setUpCount(int upCount) {
        this.upCount = upCount;
    }

    public int getRemainCount() {
        return remainCount;
    }

    public void setRemainCount(int remainCount) {
        this.remainCount = remainCount;
    }

    public String getRemainCountStr() {
        return remainCountStr;
    }

    public void setRemainCountStr(String remainCountStr) {
        this.remainCountStr = remainCountStr;
    }

    public String getDetailPic() {
        return detailPic;
    }

    public void setDetailPic(String detailPic) {
        this.detailPic = detailPic;
    }

//    public double getWorthPrice() {
//        return worthPrice;
//    }
//
//    public void setWorthPrice(double worthPrice) {
//        this.worthPrice = worthPrice;
//    }

    public double getCrawdPrice() {
        return crawdPrice;
    }

    public void setCrawdPrice(double crawdPrice) {
        this.crawdPrice = crawdPrice;
    }

    public String getCrawdedCount() {
        return crawdedCount;
    }

    public void setCrawdedCount(String crawdedCount) {
        this.crawdedCount = crawdedCount;
    }

    public double getProgress() {
        return progress;
    }

    public void setProgress(double progress) {
        this.progress = progress;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProducttype() {
        return producttype;
    }

    public void setProducttype(String producttype) {
        this.producttype = producttype;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public int getIsUp() {
        return isUp;
    }

    public void setIsUp(int isUp) {
        this.isUp = isUp;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public MergeOrderInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.productDetailId);
        dest.writeInt(this.productId);
        dest.writeString(this.productPic);
        dest.writeInt(this.retailPrice);
        dest.writeInt(this.upCount);
        dest.writeInt(this.remainCount);
        dest.writeString(this.remainCountStr);
        dest.writeString(this.detailPic);
//        dest.writeDouble(this.worthPrice);
        dest.writeDouble(this.crawdPrice);
        dest.writeString(this.crawdedCount);
        dest.writeDouble(this.progress);
        dest.writeString(this.name);
        dest.writeString(this.producttype);
        dest.writeString(this.area);
        dest.writeInt(this.isUp);
        dest.writeLong(this.startTime);
        dest.writeLong(this.endTime);
    }

    protected MergeOrderInfo(Parcel in) {
        this.productDetailId = in.readString();
        this.productId = in.readInt();
        this.productPic = in.readString();
        this.retailPrice = in.readInt();
        this.upCount = in.readInt();
        this.remainCount = in.readInt();
        this.remainCountStr = in.readString();
        this.detailPic = in.readString();
//        this.worthPrice = in.readDouble();
        this.crawdPrice = in.readDouble();
        this.crawdedCount = in.readString();
        this.progress = in.readDouble();
        this.name = in.readString();
        this.producttype = in.readString();
        this.area = in.readString();
        this.isUp = in.readInt();
        this.startTime = in.readLong();
        this.endTime = in.readLong();
    }

    public static final Creator<MergeOrderInfo> CREATOR = new Creator<MergeOrderInfo>() {
        @Override
        public MergeOrderInfo createFromParcel(Parcel source) {
            return new MergeOrderInfo(source);
        }

        @Override
        public MergeOrderInfo[] newArray(int size) {
            return new MergeOrderInfo[size];
        }
    };
}
